Skip to content

fix: MCP createCloudFunction 工具参数设计不清晰导致 HTTP 云函数创建失败#624

Open
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8ywjss-siyh6g-mcp-createcloudfunction-http-moitrwpl
Open

fix: MCP createCloudFunction 工具参数设计不清晰导致 HTTP 云函数创建失败#624
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8ywjss-siyh6g-mcp-createcloudfunction-http-moitrwpl

Conversation

@binggg
Copy link
Copy Markdown
Member

@binggg binggg commented Apr 28, 2026

Attribution issue

  • issueId: issue_mo8ywjss_siyh6g
  • category: tool
  • canonicalTitle: MCP createCloudFunction 工具参数设计不清晰导致 HTTP 云函数创建失败
  • representativeRun: atomic-js-cloudbase-http-function-params/2026-04-21T18-38-57-1k9fho

Automation summary

  • root_cause: The MCP manageFunctions tool's parameter descriptions for createFunction action were unclear about what fields are required for HTTP cloud functions. Specifically: (1) The func parameter description didn't explain which fields are required for HTTP functions (type, protocolType, runtime), and (2) The functionRootPath parameter description didn't clearly indicate it's required (along with zipFile) when creating HTTP functions.
  • changes: Applied the fix from PR fix: MCP createCloudFunction 工具参数设计不清晰导致 HTTP 云函数创建失败 #623 to mcp/src/tools/functions.ts:
  1. Enhanced func parameter description to clearly list required fields for HTTP functions: name (required), type: "HTTP", protocolType: "HTTP" (or "WS" for WebSocket), runtime (recommended "Nodejs18.15")
  2. Added a warning to functionRootPath description that it's required for HTTP functions when zipFile is not provided
  • validation:
  • TypeScript compilation: tsc --noEmit passes without errors
  • Skill tests: All 10 tests pass (build-skills-repo, build-compat-config, skill-quality-standards)
  • follow_up: The fix is a Layer 1 change (improving tool descriptions) that makes HTTP function creation requirements explicit in the M

Changed files

  • mcp/src/tools/functions.ts

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@binggg
Copy link
Copy Markdown
Member Author

binggg commented Apr 28, 2026

Attribution post-PR evaluation

  • visibility: internal identifiers, run ids, and private links are intentionally omitted
  • attempt: 1
  • eval_scope: primary_plus_regression
  • overall: PASSED
  • summary: all planned evaluation cases passed
  • updated_at: 2026-04-28T16:27:12.640Z

Cases

  • [PASSED] — primary — evaluation passed
  • [PASSED] — regression 1 — evaluation passed

@binggg
Copy link
Copy Markdown
Member Author

binggg commented Apr 29, 2026

"\n\n对于 HTTP 函数,还必须提供 functionRootPath 或 zipFile 参数来指定代码位置。",

不要老是强化 zipfile ,建议强化functionRootPath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant